<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>TODO supply a title</title>
    </head>
    <body>
        <div>
            <ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                             xmlns:ui="http://java.sun.com/jsf/facelets"
                             xmlns:h="http://java.sun.com/jsf/html"
                             xmlns:f="http://java.sun.com/jsf/core"
                             xmlns:a4j="http://richfaces.org/a4j"
                             xmlns:rich="http://richfaces.org/rich">
                <style type="text/css">
                    input[type = 'submit']{
                        margin:5px 0px 5px 10px;
                        padding:3px 5px 3px 5px;
                    }
                </style>
                <h:form>
                    <rich:panel header="R9远程数据源更新" styleClass="content-hight">
                        <h:selectManyCheckbox value="#{r9CostDataImportBean.updateOrNotli}">
                            <f:selectItem itemValue="1" itemLabel="支出" />
                            <f:selectItem itemValue="2" itemLabel="项目" />
                            <f:selectItem itemValue="3" itemLabel="经济科目" />
                            <f:selectItem itemValue="4" itemLabel="公用支出" />
                            <f:selectItem itemValue="5" itemLabel="凭证信息" />
                        </h:selectManyCheckbox>
                        <hr/>
                        <h:panelGrid columns="3">
                            <a4j:commandButton id="queryButton" value="更新数据源"
                                               action="#{r9CostDataImportBean.update}"
                                               onclick="this.disabled = 'true';"
                                               render="@this"/>
                            <rich:messages/>
                        </h:panelGrid>

                        <a4j:status onstart="#{rich:component('statPane')}.show();"
                                    onstop="#{rich:component('statPane')}.hide();" />
                        <rich:popupPanel id="statPane" autosized="true">
                            <h:graphicImage value="/resource/images/ai.gif" />
                            请稍等...
                        </rich:popupPanel>
                    </rich:panel>
                </h:form>
            </ui:composition>
        </div>
    </body>
</html>
